package ar.com.gep.soccer.entities;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;

import ar.com.cdt.framework.persistence.entity.Base;

@Entity
public class Season extends Base {

	private static final long serialVersionUID = 2686295627497988457L;

	@Column
	private int number;

	@Column
	private int week;

	@Column
	private int totalWeek;

	@ManyToMany(cascade = CascadeType.ALL)
	private List<SeasonItem> items;

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public int getWeek() {
		return week;
	}

	public void setWeek(int week) {
		this.week = week;
	}

	public List<SeasonItem> getItems() {
		return items;
	}

	public void setItems(List<SeasonItem> items) {
		this.items = items;
	}

	public int getTotalWeek() {
		return totalWeek;
	}

	public void setTotalWeek(int totalWeek) {
		this.totalWeek = totalWeek;
	}

}
